package main.java.cn.zjgsu.action;

import java.io.UnsupportedEncodingException;

import main.java.cn.zjgsu.service.Service;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class Addresume extends ActionSupport{
	Service service=new Service();
	private String state;
	private String txt;
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getTxt() {
		return txt;
	}
	public void setTxt(String txt) {
		this.txt = txt;
	}
	
	public String execute() throws Exception{
	String no=(String) ActionContext.getContext().getSession().get("no");
	service.addresumes(no, txt, state);
	service.findResumes(no);
	return SUCCESS;
	
}
}